package com.lqk.observer;

/**
 * @author lqk
 * @date 2021/12/10 10:40
 */
public class Client {
    public static void main(String[] args) {
        // 创建接入方 CurrentConditions
        CurrentConditions currentConditions = new CurrentConditions();
        // 创建 WeatherData 并将接入方 CurrentConditions 传给 WeatherData
        WeatherData weatherData = new WeatherData(currentConditions);
        weatherData.setData(30,150,40);
    }
}
